home *** CD-ROM | disk | FTP | other *** search
- function show()
- {
- if(Tardis.PLAY_MODE != "browser")
- {
- gotoAndStop(5);
- }
- else
- {
- gotoAndStop(34);
- }
- Tardis.ChildLock.EB.addListener(this);
- delete show;
- }
- function disable()
- {
- gotoAndPlay(28);
- mc_sponsor_button.button.enabled = false;
- }
- function childLockSet(val)
- {
- if(val)
- {
- gotoAndStop(21);
- mc_home_button.enabled = false;
- mc_sponsor_button.button.enabled = false;
- }
- else
- {
- gotoAndStop(12);
- mc_home_button.enabled = true;
- mc_sponsor_button.button.enabled = true;
- }
- }
- function buttonReset(name)
- {
- this["mc_" + name].gotoAndStop("off");
- }
- function showOtherButtons()
- {
- if(Tardis.PLAY_MODE != "browser")
- {
- gotoAndStop(12);
- }
- }
- function sponsorButtonActivate()
- {
- mc_sponsor_button.buttonRelease = function()
- {
- with(Tardis)
- {
- splash.interrupt();
- bottomNav.disable();
- transition.clrTint = parseInt("0x" + Settings.sponsor.overlayTint);
- var strFile = Settings.sponsor.overlay;
- trace("showAdvert(" + strFile + ")");
- overlay.showAdvert(strFile);
- UsageData.addAdvertEntry(-1);
- }
- };
- mc_sponsor_button.button.enabled = true;
- delete sponsorButtonActivate;
- }
- function sponsorButtonShow()
- {
- mc_sponsor_button._visible = true;
- }
- function sponsorButtonHide()
- {
- mc_sponsor_button._visible = false;
- }
- function homeButtonAnimate()
- {
- mc_home_button.play();
- delete homeButtonAnimate;
- }
- function homeButtonActivate()
- {
- var clp = mc_home_button;
- clp.play();
- clp.onRelease = function()
- {
- Tardis.overlay.close();
- Tardis.splashRestart();
- };
- clp.onRollOver = function()
- {
- this.gotoAndStop("still");
- };
- clp.onRollOut = function()
- {
- this.play();
- };
- delete homeButtonActivate;
- }
- stop();
-